package cn.fff.common.result;

import lombok.Data;
import lombok.Getter;

public enum ResultCodeEnum {
    SUCCESS(200, ""),
    FAIL(601, ""),
    SERVICE_ERROR(501, "服务异常"),
    LOGIN_MOBLE_ERROR(620, "@登录失败"),
    PERMISSION(621, "认证失败");

    @Getter
    private final Integer code;

    @Getter
    private final String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
